﻿using UnityEngine;
using System.Collections;

public enum MessageViewType
{
    // Message To View.
    MTV_single_move = 0,
    MTV_single_gunbarrelRotate,
    MTV_single_fire,

    // View To Message.
    VTM_single_explosion,
}


public class MessageViewBase
{
    protected System.Object _factor1;
    protected System.Object _factor2;
    protected System.Object _factor3;
    
    protected MessageViewType _type;
    public int _classType = 0;

    public MessageViewBase()
    {

    }

    public void SetFactor(MessageViewType type)
    {
        _type = type;
    }

    public void SetFactor(System.Object factor1, MessageViewType type)
    {
        _factor1 = factor1;
        _type = type;
    }

    public void SetFactor(System.Object factor1, System.Object factor2, MessageViewType type)
    {
        _factor1 = factor1;
        _factor2 = factor2;
        _type = type;
    }

    public void SetFactor(System.Object factor1, System.Object factor2, System.Object factor3, MessageViewType type)
    {
        _factor1 = factor1;
        _factor2 = factor2;
        _factor3 = factor3;
        _type = type;
    }

    public virtual void Handle() {}
}
